'''
添加任务
tasks 是worker
main  是客户端
config 配置中间人
'''

from celery_tasks.main import app
from libs.yuntongxun.sms import CCP


# @app.task(name='send_sms_code')
@app.task
def send_sms_code(mobile,sms_code):
    ccp=CCP()
    # ccp.send_template_sms('18516952650', ['1234', 5], 1)
    ccp.send_template_sms(mobile,[sms_code,5],1)
